﻿using g4;

namespace geometry4Sharp.Test
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Vector3d pt = new Vector3f(-25278.35, 0, 9230.902);
            Vector3d dir = new Vector3d(0, 1, 0);
            Segment3d segment = new Segment3d(new Vector3d(-25238.43, 2877.404, 9473.997), new Vector3d(-25329.55, 2870.817, 8919.146));

            Vector3d pt1 = pt + dir * 3000;

            Line3d line1 = new Line3d(pt, dir);
            Line3d line2 = new Line3d(segment.P0, segment.Direction);

            IntrLine3Line3 intr = new IntrLine3Line3(line1, line2);
            intr.Compute();

            Console.WriteLine($"{intr.Result}");
            Console.ReadKey();
        }
    }
}
